home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Sample Code / Snippets / Development Tools & Languages / AEGestalt / ResourceConstants.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-12  |  1.4 KB  |  52 lines  |  [TEXT/MPS ]

  1. //     ResourceConstants.h file
  2. //     Copyright © 1991-92 by Apple Computer, Inc.  All rights reserved. 
  3. //    Kent Sandvik DTS
  4. //    This file contains resource types which are needed in both the
  5. //    source code and the resource files. 
  6. //
  7. //    <1>        khs        1.0        First final version
  8.  
  9.  
  10. #ifndef __RESOURCECONSTANTS__
  11. #define __RESOURCECONSTANTS__
  12.  
  13. //    Signature and Type
  14. #define kSignature                'FOOB'            // application signature
  15. #define kFileType                'FOOD'            // file type code used for document files created by this application
  16. #define kStationery                'fOOD'            // Stationery file type 
  17.  
  18.  
  19. //    Bundle Constants
  20. #define kBundleID                128
  21. #define kApplicationID            128
  22. #define kDocumentID                129
  23. #define kStationeryID            130
  24.  
  25.  
  26. //     Menus and command
  27. #define mExamine                10
  28. #define    cFindAEGestalt            1001            // also command number
  29. #define cCreateReport            1002            // also command number
  30.  
  31. #define cAEProvideGestaltInfo    1003            // AE Server command number
  32.  
  33.  
  34. //    Views
  35. #define kMainWindow                1002            // the main document window
  36.  
  37. #define kHorizontalOffset         20                //    Common view placement constants
  38. #define kVerticalOffset            20
  39. #define kHorizontStart            28
  40. #define kVerticalStart            15
  41.  
  42.  
  43. // AppleEvents
  44. #define    kGestaltAEEvents        1201            // 'aedt' resource constant
  45. #define kMacAppClass            'maca'            // AE class
  46. #define kAEGetConfig            'mgtc'            // AE command
  47. #define kAEConfig                'conf'            // AE descriptor
  48. #define typeConfig                'tcnf'            // AE descriptor type
  49.  
  50. #endif
  51.  
  52.